package net.studio.simpletetris.control;

import net.studio.simpletetris.intf.IBlock;
import net.studio.simpletetris.intf.IPosition;

public class Block implements IBlock {

	private int x = 0;
	private int y = 0;
	
	private IPosition parent;

	private int color = 0xff000000;

	public Block(int x, int y, int color) {
		setX(x);
		setY(y);
		setColor(color);
	}

	public int getX() {
		return x;
	}

	public void setX(int value) {
		x = value;
	}

	public int getY() {
		return y;
	}

	public void setY(int value) {
		y = value;
	}

	public int getColor() {
		return color;
	}

	public void setColor(int value) {
		color = value;
	}

	public IPosition getParent() {
		return parent;
	}

	public void setParent(IPosition parent) {
		this.parent = parent;
	}

}
